import { IPSDEFieldType } from './ipsdefield-type';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEFieldTypeImpl extends PSModelObjectImpl implements IPSDEFieldType {
  get editorHeight(): number {
    return this.M.editorHeight;
  }

  get editorType(): string {
    return this.M.editorType;
  }

  get editorWidth(): number {
    return this.M.editorWidth;
  }

  get gridColumnAlign(): 'LEFT' | 'CENTER' | 'RIGHT' {
    return this.M.gridColumnAlign;
  }

  get maxValueString(): string {
    return this.M.maxValueString;
  }

  get memo(): string {
    return this.M.memo;
  }

  get minStringLength(): number {
    return this.M.minStringLength;
  }

  get minValueString(): string {
    return this.M.minValueString;
  }

  get name(): string {
    return this.M.name;
  }

  get searchEditorHeight(): number {
    return this.M.searchEditorHeight;
  }

  get searchEditorType(): string {
    return this.M.searchEditorType;
  }

  get searchEditorWidth(): number {
    return this.M.searchEditorWidth;
  }

  get stringLength(): number {
    return this.M.stringLength;
  }

  get cls(): string {
    return 'PSDEFieldTypeImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'dataentity.defield.IPSDEFieldType') return true;
    return super.instanceof(cls);
  }
}
